package com.android.duininsuoai.model.group;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/3/29.
 */

public class MainSearchSortData implements Serializable{


    /**
     * data : [{"id":"45","catname":"食品","parentid":"0","arrchildid":"45,50,51,52,63,64,54","child":"1","thumb":"","ismenu":"1","isrec":"1","thumb_rec":"http://192.168.1.47/upload/1/images/gallery/q/2/939_src.png","sub":[{"id":"52","catname":"粮油调味","parentid":"45","arrchildid":"52,63,64","child":"1","thumb":"http://192.168.1.47/upload/images/gallery/h/e/627_src.jpg","ismenu":"1","isrec":"1","thumb_rec":"","sub":[{"id":"63","catname":"酱油","parentid":"52","arrchildid":"63","child":"0","thumb":"http://192.168.1.47/upload/1/images/gallery/p/t/930_src.jpg","ismenu":"1","isrec":"1","thumb_rec":"","sub":null},{"id":"64","catname":"大米","parentid":"52","arrchildid":"64","child":"0","thumb":"","ismenu":"1","isrec":"1","thumb_rec":"","sub":null}]}]}]
     * flag : true
     * code : 0
     * msg : 操作成功
     * time : 1492756003
     */
    @Override
    public String toString() {
        return "{" + "\"data\"" + ":" + data +
                "," + "\"flag\"" + ":" + flag +
                "," + "\"code\"" + ":" + code +
                "," + "\"msg\"" + ":" + "\"" + msg + "\"" +
                "," + "\"time\"" + ":" + time + "}";

    }
    private boolean flag;
    private int code;
    private String msg;
    private int time;
    private List<DataBean> data;

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        public DataBean(String id, String catname) {
            this.id = id;
            this.catname = catname;
        }
        /**
         * id : 45
         * catname : 食品
         * parentid : 0
         * arrchildid : 45,50,51,52,63,64,54
         * child : 1
         * thumb :
         * ismenu : 1
         * isrec : 1
         * thumb_rec : http://192.168.1.47/upload/1/images/gallery/q/2/939_src.png
         * sub : [{"id":"52","catname":"粮油调味","parentid":"45","arrchildid":"52,63,64","child":"1","thumb":"http://192.168.1.47/upload/images/gallery/h/e/627_src.jpg","ismenu":"1","isrec":"1","thumb_rec":"","sub":[{"id":"63","catname":"酱油","parentid":"52","arrchildid":"63","child":"0","thumb":"http://192.168.1.47/upload/1/images/gallery/p/t/930_src.jpg","ismenu":"1","isrec":"1","thumb_rec":"","sub":null},{"id":"64","catname":"大米","parentid":"52","arrchildid":"64","child":"0","thumb":"","ismenu":"1","isrec":"1","thumb_rec":"","sub":null}]}]
         */
        @Override
        public String toString() {
            return "{" +

                    "\"id\"" + ":" + "\"" + id + "\"" + ","

                    + "\"catname\"" + ":" + "\"" + catname + "\"" + ","
                    + "\"parentid\"" + ":" + "\"" + parentid + "\"" + ","
                    + "\"arrchildid\"" + ":" + "\"" + arrchildid + "\"" + ","
                    + "\"child\"" + ":" + "\"" + child + "\"" + ","
                    + "\"thumb\"" + ":" + "\"" + thumb + "\"" + ","
                    + "\"ismenu\"" + ":" + "\"" + ismenu + "\"" + ","
                    + "\"isrec\"" + ":" + "\"" + isrec + "\"" + ","
                    + "\"thumb_rec\"" + ":" + "\"" + thumb_rec + "\"" + ","
                    + "\"sub\"" + ":" + sub
                    + "}";

        }
        private String id;
        private String catname;
        private String parentid;
        private String arrchildid;
        private String child;
        private String thumb;
        private String ismenu;
        private String isrec;
        private String thumb_rec;
        private List<SubBeanX> sub;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCatname() {
            return catname;
        }

        public void setCatname(String catname) {
            this.catname = catname;
        }

        public String getParentid() {
            return parentid;
        }

        public void setParentid(String parentid) {
            this.parentid = parentid;
        }

        public String getArrchildid() {
            return arrchildid;
        }

        public void setArrchildid(String arrchildid) {
            this.arrchildid = arrchildid;
        }

        public String getChild() {
            return child;
        }

        public void setChild(String child) {
            this.child = child;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public String getIsmenu() {
            return ismenu;
        }

        public void setIsmenu(String ismenu) {
            this.ismenu = ismenu;
        }

        public String getIsrec() {
            return isrec;
        }

        public void setIsrec(String isrec) {
            this.isrec = isrec;
        }

        public String getThumb_rec() {
            return thumb_rec;
        }

        public void setThumb_rec(String thumb_rec) {
            this.thumb_rec = thumb_rec;
        }

        public List<SubBeanX> getSub() {
            return sub;
        }

        public void setSub(List<SubBeanX> sub) {
            this.sub = sub;
        }

        public static class SubBeanX implements Serializable{
            public SubBeanX(String id, String catname, String parentid, String arrchildid,
                           String child, String thumb, String ismenu,
                           String isrec, String thumb_rec, List<SubBean> sub) {
                this.id = id;
                this.catname = catname;
                this.parentid = parentid;
                this.arrchildid = arrchildid;
                this.child = child;
                this.thumb = thumb;
                this.ismenu = ismenu;
                this.isrec = isrec;
                this.thumb_rec = thumb_rec;
                this.sub = sub;
            }

            /**
             * id : 52
             * catname : 粮油调味
             * parentid : 45
             * arrchildid : 52,63,64
             * child : 1
             * thumb : http://192.168.1.47/upload/images/gallery/h/e/627_src.jpg
             * ismenu : 1
             * isrec : 1
             * thumb_rec :
             * sub : [{"id":"63","catname":"酱油","parentid":"52","arrchildid":"63","child":"0","thumb":"http://192.168.1.47/upload/1/images/gallery/p/t/930_src.jpg","ismenu":"1","isrec":"1","thumb_rec":"","sub":null},{"id":"64","catname":"大米","parentid":"52","arrchildid":"64","child":"0","thumb":"","ismenu":"1","isrec":"1","thumb_rec":"","sub":null}]
             */
            @Override
            public String toString() {
                return "{" +

                        "\"id\"" + ":" + "\"" + id + "\"" + ","

                        + "\"catname\"" + ":" + "\"" + catname + "\"" + ","
                        + "\"parentid\"" + ":" + "\"" + parentid + "\"" + ","
                        + "\"arrchildid\"" + ":" + "\"" + arrchildid + "\"" + ","
                        + "\"child\"" + ":" + "\"" + child + "\"" + ","
                        + "\"thumb\"" + ":" + "\"" + thumb + "\""+ ","
                        + "\"ismenu\"" + ":" + "\"" + ismenu + "\""+ ","
                        + "\"isrec\"" + ":" + "\"" + isrec + "\""+ ","
                        + "\"thumb_rec\"" + ":" + "\"" + thumb_rec + "\""+ ","
                        + "\"sub\"" + ":" + sub
                        + "}";

            }
            private String id;
            private String catname;
            private String parentid;
            private String arrchildid;
            private String child;
            private String thumb;
            private String ismenu;
            private String isrec;
            private String thumb_rec;
            private List<SubBean> sub;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCatname() {
                return catname;
            }

            public void setCatname(String catname) {
                this.catname = catname;
            }

            public String getParentid() {
                return parentid;
            }

            public void setParentid(String parentid) {
                this.parentid = parentid;
            }

            public String getArrchildid() {
                return arrchildid;
            }

            public void setArrchildid(String arrchildid) {
                this.arrchildid = arrchildid;
            }

            public String getChild() {
                return child;
            }

            public void setChild(String child) {
                this.child = child;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getIsmenu() {
                return ismenu;
            }

            public void setIsmenu(String ismenu) {
                this.ismenu = ismenu;
            }

            public String getIsrec() {
                return isrec;
            }

            public void setIsrec(String isrec) {
                this.isrec = isrec;
            }

            public String getThumb_rec() {
                return thumb_rec;
            }

            public void setThumb_rec(String thumb_rec) {
                this.thumb_rec = thumb_rec;
            }

            public List<SubBean> getSub() {
                return sub;
            }

            public void setSub(List<SubBean> sub) {
                this.sub = sub;
            }

            public static class SubBean implements Serializable{
                /**
                 * id : 63
                 * catname : 酱油
                 * parentid : 52
                 * arrchildid : 63
                 * child : 0
                 * thumb : http://192.168.1.47/upload/1/images/gallery/p/t/930_src.jpg
                 * ismenu : 1
                 * isrec : 1
                 * thumb_rec :
                 * sub : null
                 */
                @Override
                public String toString() {
                    return "{" +

                            "\"id\"" + ":" + "\"" + id + "\"" + ","

                            + "\"catname\"" + ":" + "\"" + catname + "\"" + ","
                            + "\"parentid\"" + ":" + "\"" + parentid + "\"" + ","
                            + "\"arrchildid\"" + ":" + "\"" + arrchildid + "\"" + ","
                            + "\"child\"" + ":" + "\"" + child + "\"" + ","
                            + "\"thumb\"" + ":" + "\"" + thumb + "\""+ ","
                            + "\"ismenu\"" + ":" + "\"" + ismenu + "\""+ ","
                            + "\"isrec\"" + ":" + "\"" + isrec + "\""+ ","
                            + "\"thumb_rec\"" + ":" + "\"" + thumb_rec + "\""+ ","
                            + "\"sub\"" + ":" + sub
                            + "}";

                }
                private String id;
                private String catname;
                private String parentid;
                private String arrchildid;
                private String child;
                private String thumb;
                private String ismenu;
                private String isrec;
                private String thumb_rec;
                private Object sub;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getCatname() {
                    return catname;
                }

                public void setCatname(String catname) {
                    this.catname = catname;
                }

                public String getParentid() {
                    return parentid;
                }

                public void setParentid(String parentid) {
                    this.parentid = parentid;
                }

                public String getArrchildid() {
                    return arrchildid;
                }

                public void setArrchildid(String arrchildid) {
                    this.arrchildid = arrchildid;
                }

                public String getChild() {
                    return child;
                }

                public void setChild(String child) {
                    this.child = child;
                }

                public String getThumb() {
                    return thumb;
                }

                public void setThumb(String thumb) {
                    this.thumb = thumb;
                }

                public String getIsmenu() {
                    return ismenu;
                }

                public void setIsmenu(String ismenu) {
                    this.ismenu = ismenu;
                }

                public String getIsrec() {
                    return isrec;
                }

                public void setIsrec(String isrec) {
                    this.isrec = isrec;
                }

                public String getThumb_rec() {
                    return thumb_rec;
                }

                public void setThumb_rec(String thumb_rec) {
                    this.thumb_rec = thumb_rec;
                }

                public Object getSub() {
                    return sub;
                }

                public void setSub(Object sub) {
                    this.sub = sub;
                }
            }
        }
    }
}


